Skip to content

Fix the duplicate literals using the constant#17274

Merged
HTHou merged 1 commit intoapache:masterfrom
anukalp2804:fix/duplicate_literals
Mar 12, 2026
Merged

Fix the duplicate literals using the constant#17274
HTHou merged 1 commit intoapache:masterfrom
anukalp2804:fix/duplicate_literals

Conversation

@anukalp2804
Copy link
Contributor

Description

This PR fixes duplicate literals reported by the sonarcloud analysis tool.These changes ensure the code follows the project's formatting guidelines.

Changes:

  • replace the duplicate literals with constant

Files modified:

  • example/jdbc/src/main/java/org/apache/iotdb/TableModelJDBCExample.java.
  • example/session/src/main/java/org/apache/iotdb/TableModelSessionExample.java.
  • example/session/src/main/java/org/apache/iotdb/TableModelSessionPoolExample.java.

This change addresses a Sonar-reported duplicate literals for the show tables:

This PR has:

  • been self-reviewed.
  • been built locally with mvn spotless:apply.
  • been built locally with mvn clean package -DskipTests.
  • been built locally with mvn -pl iotdb-core -am test -DskipTests.

Copy link
Contributor

@HTHou HTHou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@anukalp2804
Copy link
Contributor Author

LGTM

Thank you for the review and approval!

@HTHou HTHou merged commit a53f960 into apache:master Mar 12, 2026
27 of 28 checks passed
@anukalp2804 anukalp2804 deleted the fix/duplicate_literals branch March 13, 2026 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants